package com.zhijian.wharf.dao;

import com.zhijian.wharf.entity.po.ThirdPartyDocking;
import com.zhijian.wharf.entity.vo.request.ThirdPartyDockingSearchVo;
import com.zhijian.wharf.entity.vo.response.ThirdPartyDockingVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ThirdPartyDockingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ThirdPartyDocking record);

    int insertSelective(ThirdPartyDocking record);

    ThirdPartyDocking selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ThirdPartyDocking record);

    int updateByPrimaryKey(ThirdPartyDocking record);

    /**
     * 查询总数
     *
     * @param thirdPartyDockingSearchVo
     * @return
     */
    int count(ThirdPartyDockingSearchVo thirdPartyDockingSearchVo);

    /**
     * 查询列表
     *
     * @param thirdPartyDockingSearchVo
     * @return
     */
    List<ThirdPartyDockingVo> selectList(ThirdPartyDockingSearchVo thirdPartyDockingSearchVo);

    /**
     * 查询单个
     *
     * @param thirdPartyDockingSearchVo
     * @return
     */
    ThirdPartyDockingVo selectOne(ThirdPartyDockingSearchVo thirdPartyDockingSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    ThirdPartyDockingVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param thirdPartyDockingSearchVo
     * @return
     */
    void deleteByCondition(ThirdPartyDockingSearchVo thirdPartyDockingSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<ThirdPartyDocking> entities);

    /**
     * 根据UserId查询列表
     *
     * @param userId
     * @return
     */
    List<ThirdPartyDockingVo> selectListByUserId(Long userId);
}